<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/init.jsp"%>
<jsp:useBean id="DataManager" class="dto.DataManager" scope="application"></jsp:useBean>
<jsp:useBean id="DtoCard" class="dto.DtoCard" scope="application"></jsp:useBean>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add Card Form Admin</title>
</head>
<body>
<div class="master-wrapper-content">
	<jsp:include page="heading.jsp"></jsp:include>
	<%
		System.out.println(session.getAttribute("roleId"));
		if(session.getAttribute("roleId") == null || String.valueOf(session.getAttribute("roleId")).equalsIgnoreCase("2")) {
			%>
				<h3 style="color: red">Không đủ quyền để truy cập</h3>
			<%
		}
		else {
	%>
			<jsp:include page="CategoryAdmin.jsp"></jsp:include>
			<div class="container-right">
				<div class="ml-banner">
					<div class="ml-title">Thêm Card</div>
				</div>
				<form name="addCard" method="post" action="AddCard">
					<table class="table-view">
						<tr class="title">
							<th>Mệnh giá</th>
							<th>Số lượng</th>
						</tr>
						<tr class="even">
							<td>50000 VNĐ</td>
							<td> <input type="number" name="5c" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>100000 VNĐ</td>
							<td><input type="number" name="1t" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>200000 VNĐ</td>
							<td><input type="number" name="2t" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>500000 VNĐ</td>
							<td><input type="number" name="5t" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>1000000 VNĐ</td>
							<td><input type="number" name="1tr" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>5000000 VNĐ</td>
							<td><input type="number" name="5tr" size=2 value=0 ></td>
						</tr>
						<tr class="even">
							<td>10000000 VNĐ</td>
							<td><input type="number" name="10tr" size=2 value=0 ></td>
						</tr>
						<tr>
							<td><input name ="Submit" type = "submit" value = "Thêm" /></td>
							<td> <input name ="Reset" type = "reset" value = "Reset" /></td>
						</tr>
					</table>
				</form>
				</div>
				<div class="clear"> </div>
			<%
				} 
			%>
		<jsp:include page="footer.jsp"></jsp:include>
	</div>
</body>
</html>